package com.zh.webcommon.common.query.mp;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.zh.webcommon.common.param.CommonParam;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;

/**
 * 空条件查询：
 * 只包含基本的分页参数+createTime时间范围
 *
 * @author ZH
 * @date 15:01 2023/6/15
 */
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public final class NoneConditionStrategy<T> extends AbstractConditionStrategy<T, CommonParam> {
    @SuppressWarnings("rawtypes")
    private static final NoneConditionStrategy instance = new NoneConditionStrategy();

    @SuppressWarnings("unchecked")
    public static <T> NoneConditionStrategy<T> get() {
        return instance;
    }

    @Override
    protected void specification(QueryWrapper<T> queryWrapper, CommonParam param) {
        //空条件 ...
    }
}
